package com.hp.demo.vteam.bean;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class AccountManager {
	


	public AccountManager(String name, String gender,
			String workEmail, String tel, String mobile, String desc,
			Key accountGroup, User addedBy, Date addedTime) {
		super();
		this.name = name;
		this.gender = gender;
		this.workEmail = workEmail;
		this.tel = tel;
		this.mobile = mobile;
		this.desc = desc;
		this.accountGroup = accountGroup;
		this.addedBy = addedBy;
		this.addedTime = addedTime;
	}
	
	
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String name;
    //建议此类继承系统的user类，且需添加字段,gender,workEmail, tel, mobile,
        
    @Persistent
    private String gender;
        
    @Persistent
    private String workEmail;

    @Persistent
    private String tel;
    
    @Persistent
    private String mobile;
        
    @Persistent
    private String desc;
    
    @Persistent
    private Key accountGroup;

    @Persistent
    private User addedBy;
    
	@Persistent
    private Date addedTime;
	
	public AccountManager(Long id)
	{
		this.id = id;
	}
	

    public Long getId() {
        return id;
    }

	public User getAddedBy() {
		return addedBy;
	}

	public void setAddedBy(User addedBy) {
		this.addedBy = addedBy;
	}

	public String getName() {
		return name;
	}

    public String getDesc() {
		return desc;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getWorkEmail() {
		return workEmail;
	}

	public void setWorkEmail(String workEmail) {
		this.workEmail = workEmail;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public Date getAddedTime() {
		return addedTime;
	}

	public void setAddedTime(Date addedTime) {
		this.addedTime = addedTime;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Key getAccountGroup() {
		return accountGroup;
	}

	public void setAccountGroup(Key accountGroup) {
		this.accountGroup = accountGroup;
	}
}
